package com.ailk.bi.cq.cqbiaudit.auditResults.services

import groovy.util.logging.Slf4j;
import groovy.xml.MarkupBuilder

import org.springframework.stereotype.Service;

import com.ailk.bi.cq.cqbiaudit.vo.ResultVO;

@Slf4j
@Service
class AuditResultsService {
	ResultVO getResultsData(){
		def writer = new StringWriter()
		def xml = new MarkupBuilder(writer)
		xml.result(){
			data(id:"1",type:"未售先用",money:"19")
			data(id:"2",type:"报废卡被使用",money:"52")
			data(id:"3",type:"…………",money:"□")
			data(id:"4",type:"□",money:"□")
			data(id:"5",type:"□",money:"□")
		}
		ResultVO result = new ResultVO(xmlString:writer.toString(), success:true)
		log.info("" + result)
		result
	}
}
